<?php
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html class="autoheight" xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>魔镜系统</title>
	<link rel="stylesheet" type="text/css" href="css/re.css">
	<link rel="stylesheet" type="text/css" href="css/index.css">
	<script type="text/javascript" src="js/jquery-1.11.0.js"></script>
	<script type="text/javascript" src="js/index.js"></script>
</head>
<body class="autoheight">
	<div class="autoheight" id="main">
		<div class="welcome">
			<?php
				require("../controls/connect_sql.php");
				require("../models/EmployeeSurveySystem/controls/sql.function.php");
				session_start();
				$thisuserduty=getdataf("duty","usertable","userid",$_SESSION['userid']);
				if ($thisuserduty) {
					$thisusername=getdataf("username","usertable","userid",$_SESSION['userid']);
					echo "欢迎您，".$thisusername;
				}
				else
				{
					echo "欢迎您进入管理员系统";
				}
			?>
			
		</div>
		<div id="button1" class="button">
			<a onclick="change_style(1)" href="../models/StaffingSystem/index.php" target="showframe">人员管理系统</a>
		</div>
		<div id="button2" class="button">
			<a onclick="change_style(2)" href="../models/EmployeeSurveySystem/index.php" target="showframe">评估系统</a>
		</div>
		<div class="button">
			<a href="../controls/logout.php" target="showframe">退出</a>
		</div>
	</div>
</body>
</html>